import request from '@/utils/request'
// 列表
// type:1
// is_bind:0
// keyword:
// per_page:10
// page:1
export function search(query) {
  return request({
    url: '/admin/scenicGoods/search',
    method: 'get',
    params: query
  })
}
// 添加
export function editData(data) {
  return request({
    url: '/admin/scenicGoods/editData',
    method: 'post',
    data
  })
}
export function getInfo(id) {
  return request({
    url: '/admin/scenicGoods/getInfo',
    method: 'post',
    data: {
      id
    }
  })
}
export function searchapi(data) {
  return request({
    url: '/admin/scenicGoods/searchapi',
    method: 'post',
    data
  })
}
export function getDatas(goods_id) {
  return request({
    url: '/admin/scenicGoods/getDatas',
    method: 'post',
    data: { goods_id }
  })
}
export function getAllDatas() {
  return request({
    url: '/admin/scenicGoods/getAllDatas',
    method: 'post',
    data: { }
  })
}

